/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.indosystem.client.frameutils.comparator;

import java.sql.Date;
import java.util.Comparator;

/**
 *
 * @author DukeKan
 */
public class SortedByDate implements Comparator{

    @Override
    public int compare(Object o1, Object o2) {
        Long str1 = ((Date) o1).getTime();
        Long str2 = ((Date) o2).getTime();

        return str1.compareTo(str2);
    }
    
}
